import scrapy


class CarSpider(scrapy.Spider):
    name = "car"
    allowed_domains = ["www.autohome.com.cn"]
    start_urls = ["https://www.autohome.com.cn/price/brandid_14"]

    def parse(self, response):
        content = response.xpath("//div[@class='tw-mt-1 tw-px-4']/a/text()")
        for i in content:
            print(i.extract())
